<style type="text/css" media="all">@import "newsstyle.css";</style>
<?php
	session_start();
	if(!$_SESSION["userid"]) header("Location:index.php");
	include("header.inc.php");
	include("dbconnect.inc.php");
	$id = $_SESSION["userid"];
	$sql = "select * from users where id={$id}";
	$res = mysql_query($sql);
	$row = mysql_fetch_array($res);
	$reg_time = $row["reg_time"];
	$photo = $row["photo"];
	if($photo == "") {
		$photo = "logo.png";
	}
?>
 <table width="80%" id="content" border="0" cellpadding="0" cellspacing="6" class="border">
  <tr>
   <td id="main">
<div class="breadcrumb"><a href="./index.php">HomePage</a> &raquo; <a href="./account.php">useraccount</a></div><h2><?php echo $_SESSION["username"]; ?></h2><ul class="tabs primary">

<li class="active"><a href="account.php" class="active">lookup</a></li>
<li><a href="edit_account.php">edit</a></li>
</ul>

<!-- begin content -->
<div class="profile"><h2 class="title">selfdocument</h2>
<dl><dt class="user-member">pictrue</dt><dd class="user-member"><a href="photo.php"><img src="<?php echo $photo; ?>" border="0" /></a></dd></dl>
<dl><dt class="user-member">registe time</dt><dd class="user-member"><?php echo $reg_time; ?></dd></dl></div>
<!-- end content -->
   </td>
  </tr>
 </table>

 </body>
</html>
